home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 121_01 / xd.doc < prev    next >
Text File  |  1985-08-19  |  2KB  |  68 lines

  1.  
  2.      XD (1)                    BDS C Users' Group                    XD (1)
  3.  
  4.  
  5.  
  6.      NAME        NAME 
  7.           xd - dump file in ascii, hex byte or hex word format 
  8.  
  9.      SYNOPSIS        SYNOPSIS 
  10.           xd                             xd [-wba] filename 
  11.  
  12.      DESCRIPTION        DESCRIPTION 
  13.           __                                                                       Xd is a program to dump a file to the console in one or more 
  14.           of three formats: ascii data, hex (2 digits/byte) or word 
  15.           (standard 8080 format, assuming low byte first).  
  16.  
  17.           The following options are available:
  18.                w - dump in word format (hex)
  19.                b - dump in byte format (hex)
  20.                a - dump as ascii
  21.           The default option is -ba.
  22.  
  23.           In ascii, the following conventions are used to print special
  24.           characters:
  25.                control chars -         ^ followed by uppercase char
  26.                high bit (0x80) on -    | followed by the character in the
  27.                                        low 7 bits
  28.                ctl char & 0x80 on -    $ followed by uppercase character
  29.                del (0x7f) -            ^ followed by space
  30.                0xff -                  $ followed by space
  31.  
  32.      CAVEATS        CAVEATS 
  33.           This program was tested with v1.50 of the BDS C compiler 
  34.           under CP/M 2.2.  It should work with other versions of BDS C 
  35.           and CP/M, but has not been tested.  
  36.  
  37.      EXAMPLES        EXAMPLES 
  38.           xd sample.c       dumps file "sample.c" to the console, in both
  39.                             ascii & hex format
  40.           xd -w test.dat    dumps file "test.dat" to the console in hex
  41.                             word format only
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.                                       -1-
  66.  
  67. g conventions are used to print special
  68.           chara